package com.hailin.controller;

import java.net.URI;
import java.util.Map;

import com.hailin.feign.DcClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class DcController {

    @Autowired
    DcClient dcClient;

    @GetMapping("/dcTest")
    public Object dcTest(){
        return dcClient.dcTest();
    }

}
